<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

    session_start();
    include("connect.php");

    $namauser = $_POST['namauser'];
    $pass = $_POST['pass'];
    $passcon = $_POST['passcon'];

    if($namauser && $pass && $passcon)
    {
        if($pass==$passcon)
        {
            $query2 = mysql_query("insert into user(iduser, username, password) values('2','$namauser','$pass')");
        }
        else
        {
            echo "Konfirmasi password salah";
            include("index.php");
        }
    }
    else
    {
        echo ("Isi form registrasi dengan lengkap");
        include("index.php");
    }
?>
